ShortPixel\Model\Image\MediaLibraryModel D

Total Complexity 555
Dependencies 12
Dependents 3
Total lines 3,099
Lines of code 2,197
Logical lines of code 1,306
Comment lines 322
Methods 65
Properties 16

Methods 65

Method Rating Maintainability Complexity Lines of code
checkLegacy()
D
17
64 223
handleOptimized()
D
24
45 167
addUnlisted()
D
28
36 134
restore()
D
26
31 166
getOptimizeData()
D
29
33 130
loadMeta()
B
34 20 90
loadThumbnailsFromWP()
B
39 21 66
getDBMeta()
B
34 19 90
createRecord()
B
34 18 92
onDelete()
B
40 18 63
migrate()
B
44 18 46
restoreConversion()
A
39 14 68
count()
A
44 15 49
isProcessable()
A
47 13 37
checkLegacyFileTypeFileName()
A
44 12 49
getRetinas()
A
48 11 36
getImprovements()
A
46 10 43
legacyConvertStatus()
A
52 10 23
checkUnlistedForNotice()
A
47 9 38
getAvifs()
A
51 9 28
getWebps()
A
51 9 28
getWPMLDuplicates()
A
47 8 37
conversionPrepare()
A
44 7 47
conversionSuccess()
S
45 6 44
conversionFailed()
S
52 7 24
isRestorable()
S
55 7 21
getThumbObjects()
S
58 5 16
isOptimizePrevented()
S
56 4 19
__construct()
S
56 4 19
removeLegacy()
S
57 4 18
legacyConvertType()
S
58 4 18
didAnyRecordChange()
S
59 4 17
setOriginalFile()
S
60 4 13
isSomethingOptimized()
S
62 4 13
__debugInfo()
S
58 3 15
saveDBMeta()
S
59 3 14
hasDBRecord()
S
60 3 13
getParent()
S
65 3 11
createDuplicateRecord()
S
59 2 14
cleanupDatabase()
S
60 2 12
wpCreateImageSizes()
S
62 2 11
removeLegacyShortPixel()
S
68 2 8
getAllUrls()
S
65 2 10
getURL()
S
65 2 9
getThumbNail()
S
73 2 5
getWPMetaData()
S
73 2 5
resetPrevent()
S
65 2 9
getOriginalFile()
S
72 2 6
hasOriginal()
S
72 2 6
cancelUserExclusions()
S
66 2 9
resetRecordChanges()
S
68 2 8
flushOptimizeData()
S
81 1 3
doSetting()
S
76 1 4
dropFromQueue()
S
67 1 8
generateThumbnails()
S
75 1 4
loadLooseItems()
S
78 1 4
isScaled()
S
82 1 3
returnTrue()
S
82 1 3
getThumbnailModel()
S
75 1 4
markCompleted()
S
79 1 3
preventNextTry()
S
69 1 6
saveMeta()
S
82 1 3
deleteMeta()
S
66 1 8
getOptimizeUrls()
S
75 1 4
onFlushImageCache()
S
80 1 3